<?PHP
class content_category
{
	var $data;
	var $input;
	var $output;
	var $where;
	var $piece;
	
	//list all content types
	function content_category()
	{
		//$this->data=get_sql('content_category','id',$where,NULL);
	}
	function process_content_category($mode)
	{
		$this->data=get_sql('content_category','id',$where,NULL);
	}
	
	function get_category()
	{
		mp('Processing Get Category');
		$where=process_input($this->where);
		$this->data=get_sql('content_category','id',$where,NULL);
		$this->piece=current($this->data);
	}
	
	function get_subcategory()
	{
		
		$where=process_input($this->where);
		$this->data=get_sql('content_category','id',$where,NULL);
	}
	

}
?>